<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>学院</title>
</head>
<body>
	
<!--
	<th> Hi World! </th>
	<a href="add?data1=4.2&data2=5.2">4.2+5.2</a>
	</br>
	数字1:
	<input type="text" name="one" id="first"></br>
	运  算:
	<select id=select>
	<option value="+">+</option><option value="-">-</option>
	<option value="*">*</option><option value="/">/</option>
	</select></br>
	数字2:
	<input type="text" name="two" id="second">
	</br></br>
	<input type="submit"  value="计算" id="calculation" onclick="aclick()">
	<input type="text" id="result">
	
<script>	
	function aclick(){
		var a=document.getElementById("first").value;
		var b=document.getElementById("second").value;
		var c=document.getElementById("select").value;
		
		switch (c) {
		case "+" : sum1 = parseFloat(a) + parseFloat(b) ;break;
		case "-" : sum1 = parseFloat(a) - parseFloat(b) ;break;
		case "*" : sum1 = parseFloat(a) * parseFloat(b) ;break;
		case "/" : sum1 = parseFloat(a) / parseFloat(b) ;break;
		}        	
		document.getElementById("result").value=sum1;
		}
</script>	-->

	<!--		<form action="add" method="get">
			数字1:
			<input type="text" name="data1" th:value="${data1}"></br	>
			运  算:
			<select id=select name="operator" th:value="${operator}">
				<option value="+" th:selected="'+'==${operator}">+</option>
				<option value="-" th:selected="'-'==${operator}">-</option>
				<option value="*" th:selected="'*'==${operator}">*</option>
				<option value="/" th:selected="'/'==${operator}">/</option>
			</select></br>
			数字2:
			<input type="text" name="data2" th:value="${data2}"></br>
			<input type="submit">
			<input type="text" th:value="${result}">
			
			<p th:text="${result}"></p>
		</form>  -->
		
	
  	<table border="1">
		<tr>
			<th>#</th>
			<th>id</th>
			<th>名称</th>
			<th>描述</th>
			<th>时期</th>
		</tr>

		<tr th:each="c,state:${demo3}">
			<td th:text="${state.count}"></td>
			<td th:text="${c.id}"></td>
			<td th:text="${c.name}"></td>
			<td th:text="${c.describe}"></td>
			<td th:text="${c.buildTime}"></td>
		</tr>
	</table>  

</body>
</html>